package app.auto.runner.base.utility;

import android.app.Activity;

/**
 * Created by hp on 2018/3/5.
 */

public class OrientUtil {

    public static Integer ScreenOriention = null;

    public static void orient(Activity aty) {
        if (null != ScreenOriention) {
            if (aty.getRequestedOrientation() != ScreenOriention) {
                aty.setRequestedOrientation(ScreenOriention);
            }
        }
    }


}
